home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / ENetEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  2.0 KB  |  69 lines  |  [TEXT/MPS ]

  1. ;
  2. ; File: ENETEqu.a - equates for the Ethernet driver
  3. ;
  4. ; Version 1.1a1
  5. ;
  6. ; Copyright 1987-1991 Apple Computer, Inc. All Rights Reserved
  7. ;
  8.  
  9. ; Control codes.
  10.  
  11.  IF &TYPE('__IncludingENetEqu__') = 'UNDEFINED' THEN
  12. __IncludingENetEqu__   SET 1
  13.  
  14. ENetSetGeneral     EQU        253                ; Set "general" mode
  15. ENetGetInfo        EQU        252                ; Get info
  16. ENetRdCancel    EQU        251                ; Cancel read
  17. ENetRead        EQU        250                ; Read
  18. ENetWrite        EQU        249                ; Write
  19. ENetDetachPH    EQU        248                ; Detach protocol handler
  20. ENetAttachPH    EQU        247                ; Attach protocol handler
  21. ENetAddMulti    EQU        246                ; Add a multicast address
  22. ENetDelMulti    EQU        245                ; Delete a multicast address
  23.  
  24. FirstENET        EQU        ENetDelMulti    ; First ENET command
  25. LastENET        EQU        ENetSetGeneral    ; Last ENET command
  26.  
  27. ; ENET queue element standard structure:  arguments passed in the CSParam area
  28.  
  29. EProtType    EQU    $1C                ; Offset to protocol type code  {csParam}
  30. EMultiAddr    EQU    $1C                ; Multicast address (EAddMulti,EDelMulti) {csParam}
  31.  
  32. EHandler    EQU    EProtType+2        ; Offset to protocol handler
  33. EWDSPointer    EQU    EHandler        ; WDS pointer (EWrite)
  34. EBuffPtr    EQU    EHandler        ; Buffer pointer (ERead,EGetInfo)
  35. EKillQEl    EQU    EHandler        ; QEl pointer (ERdCancel)
  36.  
  37. EBuffSize    EQU    EBuffPtr+4        ; Buffer size (ERead,EGetInfo)
  38. EDataSize    EQU    EBuffSize+2        ; Actual data size (Eread)
  39.  
  40.  
  41. ;---------------------------------------
  42. ; Ethernet packet header
  43. ;---------------------------------------
  44.  
  45. EDestAddr    EQU    0                ; Offset to destination address
  46. ESrcAddr    EQU    6                ; Offset to source address
  47. EType        EQU    12                ; Offset to data link type
  48. EHdrSize    EQU    14                ; Ethernet header size
  49.  
  50. EMinDataSz    EQU    46                ; Minimum data size
  51. EMaxDataSz    EQU    1500            ; Maximum data size
  52. EAddrSz        EQU    6                ; Size of an ethernet node address
  53.  
  54.  
  55. ;
  56. ; Errors and misc.
  57. ;
  58.  
  59. eLenErr        EQU    -92                ; Length error ddpLenErr
  60. eMultiErr    EQU    -91                ; Multicast address error ddpSktErr
  61.  
  62. EAddrRType    EQU    'eadr'            ; Alternate address resource type
  63.  
  64. ;
  65. ; Link specific 'atlk' AGetInfo call
  66. ;
  67. ESpeed        EQU    10000000        ; Link speed in bits/sec
  68.  
  69.                ENDIF    ;  ...already included